package com.study.zzedu.ui.appointexam;


import android.content.Context;

import com.study.zzedu.base.BasePresenter;
import com.study.zzedu.http.OnResultListener;

public class AppointExamPresenter extends BasePresenter<AppointExamContract.IView> {

    private AppointExamModel pwdModel;

    public AppointExamPresenter() {
        this.pwdModel = new AppointExamModel();
    }

    //获取验证码
    public void getPhoneCode(Context context) {
        pwdModel.getPhoneCode(context, new OnResultListener() {
            @Override
            public void onSuccess(String result) {
                getView().getData(result);
            }

            @Override
            public void onError(String error) {
                //getView().getData(result);
            }
        });
    }

}
